package cool.lichuan.zabbix.domain.problem;

import cool.lichuan.zabbix.util.FieldUtil.*;

import java.io.Serializable;

/**
 * 更新事件
 * @author lichuan
 * @date 2021/11/5 11:03
 */
public class Acknowledges implements Serializable {
    /** update's ID */
    @BeanField("acknowledgeid")
    private String acknowledgeId;
    /** 更新事件的用户 */
    private String userid;
    /** 更新事件 */
    @BeanField("eventid")
    private String eventId;
    /** 更新事件的时间 */
    private String clock;
    /** 信息是text格式 */
    private String message;
    /** 更新操作类型  1:关闭事件 2:确认事件 4:新增消息 8:更改严重等级*/
    private String action;
    /** 在此更新操作之前的事件严重性  严重等级：0:未分类 1:信息 2:警告 3:一般严重 4:严重 5:灾难*/
    @BeanField("old_severity")
    private String oldSeverity;
    /** 在此更新操作之后的事件严重性 */
    @BeanField("new_severity")
    private String newSeverity;

    public String getAcknowledgeId() {
        return acknowledgeId;
    }

    public void setAcknowledgeId(String acknowledgeId) {
        this.acknowledgeId = acknowledgeId;
    }

    public String getUserid() {
        return userid;
    }

    public void setUserid(String userid) {
        this.userid = userid;
    }

    public String getEventId() {
        return eventId;
    }

    public void setEventId(String eventId) {
        this.eventId = eventId;
    }

    public String getClock() {
        return clock;
    }

    public void setClock(String clock) {
        this.clock = clock;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getAction() {
        return action;
    }

    public void setAction(String action) {
        this.action = action;
    }

    public String getOldSeverity() {
        return oldSeverity;
    }

    public void setOldSeverity(String oldSeverity) {
        this.oldSeverity = oldSeverity;
    }

    public String getNewSeverity() {
        return newSeverity;
    }

    public void setNewSeverity(String newSeverity) {
        this.newSeverity = newSeverity;
    }

    @Override
    public String toString() {
        return "Acknowledges{" +
                "acknowledgeId='" + acknowledgeId + '\'' +
                ", userid='" + userid + '\'' +
                ", eventId='" + eventId + '\'' +
                ", clock='" + clock + '\'' +
                ", message='" + message + '\'' +
                ", action='" + action + '\'' +
                ", oldSeverity='" + oldSeverity + '\'' +
                ", newSeverity='" + newSeverity + '\'' +
                '}';
    }

    private static final long serialVersionUID = -7031463028447607669L;
}